﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TiPort.TiEntityObjects;
using AppPort;
using TI_EntityLib.TiEntityObjects.DayLog;
using TiEntityObject.Transport;
using System.IO;
using TI;
using TiEntityObject.Notification;

namespace Controllers
{
    public class DefaultController : Controller 
    {
        private static DefaultController instance;

        public static DefaultController Instance
        {
            get
            {
                if (DefaultController.instance == null)
                {
                    DefaultController.instance = new DefaultController();
                }
                return DefaultController.instance;
            }
        }

       
        /// <summary>
        /// вернуть список медикаментов содержащихся в табличках
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public string GetDocumentRows(ServiceCmd p) {
           return  Controllers.DefaultControllerCommands.GetDocumentRows.Run(p);                  
        }

        public string GetNotificationFromDocumentRows(ServiceCmd p) {
            return Controllers.DefaultControllerCommands.GetNotificationFromDocumentRows.Run(p);   
        }

        public string GetKladrItems(ServiceCmd p)
        {
            return Controllers.DefaultControllerCommands.GetKladrItems.Run(p);   
        }

        public string LoadNotificationList(ServiceCmd p)
        {
            return Controllers.DefaultControllerCommands.LoadNotificationList.Run(p);   
        }

        public string GetMnnItems(ServiceCmd p)
        {
            return Controllers.DefaultControllerCommands.GetMnnItems.Run(p);   
        }
    
    }

}
